package com.dmx.fw.web.struts2.action.demo;

import java.util.ArrayList;
import java.util.List;

import com.dmx.fw.security.bean.Menu;


public class ExtTagDemoAction  {
	
	private List<Menu> selectList ;
	private List<Menu> radioList ;
	private List<Menu> checkboxList ;
	private List checked;

	public String demo(){
	    selectList = new ArrayList<Menu>();
		radioList = new ArrayList<Menu>();
		checkboxList = new ArrayList<Menu>();
		checked = new ArrayList();
		
		Menu menu1 = new Menu();
		menu1.setId(1);
		menu1.setMenuName("有效");
		Menu menu2 = new Menu();
		menu2.setId(2);
		menu2.setMenuName("无效");
		
		selectList.add(menu1);
		selectList.add(menu2);
		
		radioList.add(menu1);
		radioList.add(menu2);
		
		checkboxList.add(menu1);
		checkboxList.add(menu2);
		
		checked.add("1");
		checked.add("2");
		
		
		
		return "demo";
	}

	public List<Menu> getSelectList() {
		return selectList;
	}

	public void setSelectList(List<Menu> selectList) {
		this.selectList = selectList;
	}

	public List<Menu> getRadioList() {
		return radioList;
	}

	public void setRadioList(List<Menu> radioList) {
		this.radioList = radioList;
	}

	public List<Menu> getCheckboxList() {
		return checkboxList;
	}

	public void setCheckboxList(List<Menu> checkboxList) {
		this.checkboxList = checkboxList;
	}

	public List getChecked() {
		return checked;
	}

	public void setChecked(List checked) {
		this.checked = checked;
	}

	
	
}
